<style>
.jylabel {padding:0.5rem 2rem}
</style>
<div class='fui-page fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left">
			<a class="back" ng-click="goback()"></a>
		</div>
		<div class="title">员工发红包</div> 
		<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class="fui-content navbar">
		<div class="fui-cell-group fui-cell-click mod-group" style="margin-top:0">
				<a class="fui-cell external" href="javascript:;">
					<div class="fui-cell-icon"><i class="icon icon-ai-hongbao"></i></div>
					<div class="fui-cell-text">单个红包</div>
					<div class="fui-cell-remark noremark">{{pagedata.post.fee}}元</div>
				</a>
				<div class="fui-icon-group col-2 selecter" style="padding:0.5rem">
					<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.fee='2.50'">
						<div ng-class="{'jylabel jylabel-red':1,'active':pagedata.post.fee=='2.50'}">
							￥2.50元
						</div>
					</a>
					<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.fee='1.00'">
						<div ng-class="{'jylabel jylabel-red':1,'active':pagedata.post.fee=='1.00'}">
							￥1.00元
						</div>
					</a>
					<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.fee='0.88'">
						<div ng-class="{'jylabel jylabel-red':1,'active':pagedata.post.fee=='0.88'}">
							￥0.88元
						</div>
					</a>
					<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.fee='0.30'">
						<div ng-class="{'jylabel jylabel-red':1,'active':pagedata.post.fee=='0.30'}">
							￥0.30元
						</div>
					</a>
				</div>
		</div>
		<div class="fui-cell-group">
				<div class='fui-cell'>
                    <div class='fui-cell-label'>祝福语</div>
                    <div class='fui-cell-info'><input type="text" ng-model="pagedata.post.msg" placeholder="恭喜发财，大吉大利"  class="fui-input"/></div>
                </div>
		</div>
		<div class="fui-cell-group">
				<div class="fui-cell">
					<div class="fui-cell-label" style="width:100px;">员工备注</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-info c000">
						<textarea rows="5" placeholder="个人红包" ng-model="pagedata.post.remark"></textarea>
					</div>
				</div>
		</div>
		<div class='fui-page-title'>
                    <span>￥</span>
                    <span style="font-size:2rem">{{pagedata.post.fee}}</span>
         </div>
	</div>
	<div class="fui-navbar">
		<div ng-click="post(pagedata.post,'post')" class="nav-item btn btn-red">立即发送</div>
	</div>
</div>
<script>
scope.pagedata.buy=function(id){
	scope.post_json('jy_weishop/member.getcard/buy/',{'id':id},function(pay_id){
		console.log('pay_id');console.log(pay_id);
		require(['tool'],function(tool){
			tool.pay(pay_id,function(res){
				console.log('收到支付结果！');
				if(res.type=='success'){
					scope.message('兑换成功！','','jy_weishop/member.mycard/');
				}else{
					scope.message('兑换失败！'+res.message,'','goback');
				}
			});
		});
	});
}
</script>